  <div class="main">
    <div class="rec">
      <div class="board">
       <div class="topbg"></div>
       <div class="midbg">
        <div class="first">
          <img src="<?php echo IMAGE_DIR; ?>index/13.jpg" alt="淘宝便宜男装" />
          <!--热点单个介绍  图片-->
          <div class="cont"> 
          	<p><a href="http://www.huakaili.com/list_info/6">818淘宝的便宜男装店</a></p>
            <p><a href="http://www.huakaili.com/list_info/6" class="read_f">淘宝老牌店，关键是便宜，穷人最爱~[全文]</a> </p></div>
          <!--热点单个介绍  文字--> 
        </div>
        <ul>
          <li><a href="http://www.huakaili.com/list_info/7">推荐有爱的数码店铺</a></li>      
          <li><a href="http://www.huakaili.com/review_info/351">举报卖豆浆机的无耻卖家</a></li>
          <li><a href="http://www.huakaili.com/review_info/303">[图]运气不好买到了假鞋子</a></li>
          <li><a href="http://www.huakaili.com/list_info/11">MM保养不可不看店铺</a></li>
        </ul>
        </div>
        <div class="bottombg"></div>  
        <!--热点列表--> 
        
      </div>
      <!--热点单个介绍-->
   
       <div id="slides_show">
    	   	<div id="slides_nav"></div>
			<a href="http://www.huakaili.com/help/?subpage=201"><img src="<?php echo IMAGE_DIR; ?>ad_banner3.jpg" alt="新闻1" /></a>
    	    <a href="http://www.huakaili.com/help/?subpage=201"><img src="<?php echo IMAGE_DIR; ?>ad_banner05.jpg" alt="新闻2" /></a>
    	    <a href="http://www.huakaili.com/help/?subpage=201"><img src="<?php echo IMAGE_DIR; ?>ad_banner06.jpg" alt="新闻3" /></a>  	
     </div>
   
    </div>
    <!--左侧第一层-->
    <div class="category clear">
      <div class="cat ln">
        <div class="tt">类别</div>
        <div class="ct"> 
<?php
		foreach($hotCategories as $category)
		{
?>
			<a href="<?php echo edp_href_link(PAGENAME_SHOP_SEARCH_RESULT, 'category='.$category["id"].'&q=');?>">
<?php
			if($category["font-size"]===1) 
			{
?>
				<span class="strong">
<?php
			}
			echo $category["name"];
			if($category["font-size"]===1) 
			{
				echo "</span>";
			}
			echo "</a>";
		}
?>
        </div>
        <!--类别内容--> 
      </div>
      
      <div class="tag ln">
        <div class="tt">标签</div>
        <div class="ct"> 
        
<?php
		foreach($hotFeatures as $feature)
		{
?>
			<a href="<?php echo edp_href_link(PAGENAME_SHOP_SEARCH_RESULT, 'feature[]='.$feature["id"]."&q=");?>">
<?php 
			echo $feature["feature_name"];
?>
			</a>
<?php
		} 
?> 

        
<?php
		foreach($hotTags as $tag) 
		{
?>
			<a href="<?php echo edp_href_link(PAGENAME_SHOP_SEARCH_RESULT, 'q='.sconv($tag["name"]));?>">
<?php
			if($tag["font-size"]===1) 
			{
?>
				<span class="strong">
<?php
			}
			echo $tag["name"];
			if($tag["font-size"]===1) 
			{
				echo "</span>";
			}
			echo "</a>";
		}
?>


        </div>
      </div>
      
      <!--标签 -->
 
      <!--特色 --> 
    </div>
    <!--三大块 -->
   
      <div class="review_box">
        <ul>
          <li class="menuOn" id="tab_t1">最新点评</li>
          <li class="menuNo" id="tab_t2">最热点评</li>
          <li class="menuNo" id="tab_t3">差评精华</li>
          <li class="menuNo" id="tab_t4">好评精华</li>
        </ul>
        <div id="r_tab_t1" class="slidingList">
<?php
		if($newReviews)
		{
			foreach($newReviews as $review)
			{
?>
				<div class="review_item clear">
				
					<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$review['shop_id']);?>" target="_blank">
						<img src="<?php echo $review['logo_url'];?>" class="bg_shop_img" alt="<?php secho($review['shop_name']);?>的Logo" />
					</a>
					
					<p class="r_name">
						<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$review['shop_id']);?>" target="_blank">
							<?php secho($review['shop_name']);?>
						</a>
					</p>
					<div class="r_score">
						<div class="r_user">
							
							<a href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$review['user_id']);?>" target="_blank">
								<?php echo $review['nick'];?>
							</a>
							点评
							<span class="smallscore<?php echo $review['score']+1;?> HRI_score"></span>
						</div>
						<div class="r_rank">
							商家服务：<span class="redfont"><?php echo $review['service'];?></span>
							商品真实度：<span class="redfont"><?php echo $review['reality'];?></span>
							发货速度：<span class="redfont"><?php echo $review['velocity'];?></span> 
							性价比：<span class="redfont"><?php echo $review['rate'];?></span>
						</div>						
					</div>

					<div class="r_content">
<?php
						if(EdpStrLen($review['content'])>150)
						{
							secho(EdpSubStr($review['content'], 0, 150 )."...");
						}
						else 
						{
							secho($review['content']);
						} 
?>
						<a href="<?php echo edp_href_link(PAGENAME_REVIEW_INFO, 'rid='.$review['id']);?>"  target="_blank">(阅读全部)</a>
					</div>
					<div class="clear"></div>
				</div>	
<?php
			}
		} 
?>

	</div>
	
	<div id="r_tab_t2" class="slidingList_none">
<?php 
		if($hotReviews)
		{
			foreach($hotReviews as $review)
			{
?>
				<div class="review_item clear">
				
						<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$review['shop_id']);?>" target="_blank">
						 	<img src="<?php echo $review['logo_url'];?>" class="bg_shop_img" alt="<?php secho($review['shop_name']);?>的Logo" />
						 </a>
			
					<p class="r_name">
						<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$review['shop_id']);?>" target="_blank">
							<?php secho($review['shop_name']);?>
						</a>
					</p>
					
				<div class="r_score">												
						<div class="r_user">							
							<a href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$review['user_id']);?>" target="_blank">
								<?php echo $review['nick'];?>
							</a>
							点评
							<span class="smallscore<?php echo $review['score']+1;?> HRI_score"></span>
						</div>
						<div class="r_rank">
							商家服务：<span class="redfont"><?php echo $review['service'];?></span>
							商品真实度：<span class="redfont"><?php echo $review['reality'];?></span>
							发货速度：<span class="redfont"><?php echo $review['velocity'];?></span> 
							性价比：<span class="redfont"><?php echo $review['rate'];?></span>
						</div>
					</div>
					<div class="r_content">	
<?php
						if(EdpStrLen($review['content'])>150)
						{
							secho(EdpSubStr($review['content'], 0, 150 )."...");
						}
						else 
						{
							secho($review['content']);
						} 
?>
						<a href="<?php echo edp_href_link(PAGENAME_REVIEW_INFO, 'rid='.$review['id']);?>"  target="_blank">(阅读全部)</a>
					</div>
				</div>	
<?php
			}
		} 
?>
	</div>
	
	<div id="r_tab_t3" class="slidingList_none">
<?php
		 if($badReviews)
		{
			foreach($badReviews as $review)
			{
?>
				<div class="review_item clear">
					
						<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$review['shop_id']);?>" target="_blank">
						 	<img src="<?php echo $review['logo_url'];?>" class="bg_shop_img" alt="<?php secho($review['shop_name']);?>的Logo" />
						 </a>
				
					<p class="r_name">
						<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$review['shop_id']);?>" target="_blank">
							<?php secho($review['shop_name']);?>
						</a>
					</p>
				<div class="r_score">		
					<div class="r_user">

						<a href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$review['user_id']);?>" target="_blank">
							<?php echo $review['nick'];?>
						</a>
						点评
						<span class="smallscore<?php echo $review['score']+1;?> HRI_score"></span>
					</div>
					<div class="r_rank">
						商家服务：<span class="redfont"><?php echo $review['service'];?></span>
						商品真实度：<span class="redfont"><?php echo $review['reality'];?></span>
						发货速度：<span class="redfont"><?php echo $review['velocity'];?></span> 
						性价比：<span class="redfont"><?php echo $review['rate'];?></span>
					</div>
				</div>
					<div class="r_content">				
<?php
						if(EdpStrLen($review['content'])>150)
						{
							secho(EdpSubStr($review['content'], 0, 150 )."...");
						}
						else 
						{
							secho($review['content']);
						} 
?>
						<a href="<?php echo edp_href_link(PAGENAME_REVIEW_INFO, 'rid='.$review['id']);?>"  target="_blank">(阅读全部)</a>
					</div>
				</div>	
<?php
			}
		} 
?>
	</div>
	
	<div id="r_tab_t4" class="slidingList_none">
<?php
	 	if($goodReviews)
		{
			foreach($goodReviews as $review)
			{
?>
				<div class="review_item clear">
					
						<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$review['shop_id']);?>" target="_blank">
						 	<img src="<?php echo $review['logo_url'];?>" class="bg_shop_img"  alt="<?php secho($review['shop_name']);?>的Logo" />
						 </a>
				
					<p class="r_name">
						<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$review['shop_id']);?>" target="_blank">
							<?php secho($review['shop_name']);?>
						</a>
					</p>
					<div class="r_score">		
						<div class="r_user">							
							<a href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$review['user_id']);?>" target="_blank">
								<?php echo $review['nick'];?>
							</a>
							点评
							<span class="smallscore<?php echo $review['score']+1;?> HRI_score"></span>
						</div>
						<div class="r_rank">
							商家服务：<span class="redfont"><?php echo $review['service'];?></span>
							商品真实度：<span class="redfont"><?php echo $review['reality'];?></span>
							发货速度：<span class="redfont"><?php echo $review['velocity'];?></span> 
							性价比：<span class="redfont"><?php echo $review['rate'];?></span>
						</div>
					</div>
					<div class="r_content">		
<?php
						if(EdpStrLen($review['content'])>150)
						{
							secho(EdpSubStr($review['content'], 0, 150 )."...");
						}
						else 
						{
							secho($review['content']);
						} 
?>
						<a href="<?php echo edp_href_link(PAGENAME_REVIEW_INFO, 'rid='.$review['id']);?>"  target="_blank">(阅读全部)</a>
					</div>
				</div>	
<?php
			}
		} 
?>
	</div>
</div>
    
    <!--最新点评 -->
	<div class="main_ad">
			<p align="center"> 
			<a href="<?php echo edp_href_link(PAGENAME_REVIEW_SUMMARY);?>"> 
				>>点此查看更多评论<< 
			</a>
			<span class="ad">
			</span> 
		</p>
	
	</div>
    <!--中广告 -->
    <div class="list_box clear">
      <div class="list_tab">
       <div class="topbg"></div>
        <!--头部背景 -->
        <div class="list_items">
          <div class="list_t newlist">
          	
          	<h3>最新评单 </h3> 
          	<a href="<?php echo edp_href_link(PAGENAME_LIST_SUMMARY);?>">更多>></a>
          </div>
          <!--头部栏目标题 -->
<?php
		if($newLists)
		{
?>
		<div class="list_f">
          
            	<a href="<?php echo edp_href_link(PAGENAME_LIST_INFO, 'lid='.$newLists[0]['id']);?>">
            		<img src="<?php echo $newLists[0]["pic_path"];?>" class="bg_list_img" alt="评单图片" /> 
            	</a>	
          
            <!--图片背景-->
            <div class="list_f_c"> 
            	<p class="strong">
            		<a href="<?php echo edp_href_link(PAGENAME_LIST_INFO, 'lid='.$newLists[0]['id']);?>">
            			<?php echo $newLists[0]['title'];?>
            		</a>
            	</p>
          
<?php
				if(mb_strlen($newLists[0]['description'])>50)
				{
					secho(EdpSubStr($newLists[0]['description'], 0, 50 ).'...');
				}
				else 
				{
					secho($newLists[0]['description']);
				} 
?>
            </div>
            <!--评单介绍--> 
          </div>
            <!--单个介绍-->
          <div class="list_l clear">
            <ul>
<?php
			for($i=1;$i<count($newLists);$i++) 
			{
?>
				 <li>
				 	<a href="<?php echo edp_href_link(PAGENAME_LIST_INFO, 'lid='.$newLists[$i]['id']);?>">
<?php
					if(mb_strlen($newLists[$i]['title'])>30)
					{
						secho(EdpSubStr($newLists[$i]['title'], 0, 30 ).'...');
					}
					else 
					{
						secho($newLists[$i]['title']);
					} 
?>
				 	</a>
				 </li>
<?php
			}
?>
            </ul>
          </div>
          <!--列表内容--> 
<?php
		} 
?>
		</div>
        <!--最新评单榜内容 -->
      <div class="bottombg"></div>
      </div>
      <!--最新评单 -->
      <div class="list_tab">
       <div class="topbg"></div>
    
      	<div class="list_items">
          <div class="list_t hotlist"> 
          	<h3>最热评单</h3>  
          	<a href="<?php echo edp_href_link(PAGENAME_LIST_SUMMARY);?>">更多>></a>
      		</div>
          <!--头部栏目标题 -->
<?php
		if($hotLists)
		{
?>
		<div class="list_f">
            
            	<a href="<?php echo edp_href_link(PAGENAME_LIST_INFO, 'lid='.$hotLists[0]['id']);?>">
            		<img src="<?php echo $hotLists[0]["pic_path"];?>" class="bg_list_img" alt="评单图片" /> 
            	</a>	
         
            <!--图片背景-->
            <div class="list_f_c"> 
            	<p class="strong">
            		<a href="<?php echo edp_href_link(PAGENAME_LIST_INFO, 'lid='.$hotLists[0]['id']);?>">
            			<?php echo $hotLists[0]['title'];?>
            		</a>
            	</p>
            
<?php
				if(mb_strlen($hotLists[0]['description'])>50)
				{
					secho(EdpSubStr($hotLists[0]['description'], 0, 50 ).'...');
				}
				else 
				{
					secho($hotLists[0]['description']);
				} 
?>
            </div>
            <!--评单介绍--> 
          </div>
            <!--单个介绍-->
          <div class="list_l clear">
            <ul>
<?php
			for($i=1;$i<count($hotLists);$i++) 
			{
?>
				 <li>
				 	<a href="<?php echo edp_href_link(PAGENAME_LIST_INFO, 'lid='.$hotLists[$i]['id']);?>">
<?php
					if(mb_strlen($hotLists[$i]['title'])>30)
					{
						secho(EdpSubStr($hotLists[$i]['title'], 0, 30 ).'...');
					}
					else 
					{
						secho($hotLists[$i]['title']);
					} 
?>
				 	</a>
				 </li>
<?php
			}
?>
            </ul>
          </div>         
          <!--列表内容--> 
<?php
		} 
?>
       </div>
        <!--最热评单榜内容 -->
        <div class="bottombg"></div>
      </div>
      <!--最热评单 -->
      
      <div class="rr_tab">
        <div class="topbg"></div>
        <div class="midbg">
          <div class="rr_t">
          	点评精华榜
          	<a href="<?php echo edp_href_link(PAGENAME_REVIEW_RANK);?>">更多>></a>
          </div>
          <!--头部栏目标题 -->
          <ul class="rr_l">
             <?php foreach( $rankList as $item) {?>
                <li>
                     <a href="<?php echo edp_href_link( PAGENAME_REVIEW_RANK, "type=red&gid=".$item['id']);?>">
                        <?php echo $item['title']?>好评榜
                    </a>
                </li>
                <li>
                     <a href="<?php echo edp_href_link( PAGENAME_REVIEW_RANK, "type=black&gid=".$item['id']);?>">
                        <?php echo $item['title']?>差评榜
                    </a>
                </li>                
              <?php } ?>  

          </ul>
        </div>
        <div class="bottombg"></div>
        <!--点评精华榜内容 -->

      </div>
      <!--点评精华榜 --> 
    </div>
    <!--点评三大块-->

    <div class="shop_box">
     <ul>
  <li class="menuOn" id="tab2_t1" >最新店铺</li>
  <li class="menuNo" id="tab2_t2" >热门店铺</li>
  <li class="menuNo" id="tab2_t3" >热门商城</li>
  </ul>

  <div id="s_tab2_t1" class="slidingList">
<?php

	if($newShops)
	{
		$printN = 1;
		foreach($newShops as $shop)
		{
			if( $printN % 5 == 1 ) 
			{
?>
				<div class="clear"> 
				
<?php 
			}
?>
			<div class="shop_item">
			
					<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>">
						<img src="<?php echo $shop['logo_url'];?>" class="bg_shop_img" alt="<?php secho($shop['shop_name']); ?>的Logo " />
					</a>

			 		<h3>
			 			<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>">
<?php
							secho($shop['shop_name']);
?>
			 			</a>
			 		</h3> 
			 </div>
<?php
			if($printN % 5 === 0)
			{
				echo '</div>';
			}
			$printN++;
		}
		if( $printN % 5 !== 1 )
		{
			echo '</div>';
		}
	}
?>
	</div>
  <div id="s_tab2_t2" class="slidingList_none">
<?php

	if($hotShops)
	{
		$printN = 1;
		foreach($hotShops as $shop)
		{
			if( $printN % 5 == 1 ) 
			{
?>
				<div class="clear"> 
				
<?php 
			}
?>
			<div class="shop_item">
			
					<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>">
						<img src="<?php echo $shop['logo_url'];?>" class="bg_shop_img"  alt="<?php secho($shop['shop_name']); ?>的Logo " />
					</a>

			 		<h3>
			 			<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>">
<?php
							secho($shop['shop_name']);
?>
			 			</a>
			 		</h3> 
			 </div>
<?php
			if($printN % 5 === 0)
			{
				echo '</div>';
			}
			$printN++;
		}
		if( $printN % 5 !== 1 )
		{
			echo '</div>';
		}
	}
?>
	</div>
	
  <div id="s_tab2_t3" class="slidingList_none">
<?php

	if($hotMalls)
	{
		$printN = 1;
		foreach($hotMalls as $mall)
		{
			if( $printN % 5 == 1 ) 
			{
?>
				<div class="clear"> 
				
<?php 
			}
?>
			<div class="shop_item">
				<div class="bg_mall_img">
					<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$mall['id']);?>">
						<img src="<?php echo $mall['logo_url'];?>" class="thumbMallImage80"  alt="<?php secho($mall['shop_name']); ?>的Logo " />
					</a>
			</div>
			 		<h3>
			 			<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$mall['id']);?>">
<?php
							secho($mall['shop_name']);
?>
			 			</a>
			 		</h3> 
			 
			 </div>
<?php
			if($printN % 5 === 0)
			{
				echo '</div>';
			}
			$printN++;
		}
		if( $printN % 5 !== 1 )
		{
			echo '</div>';
		}
	}
?>
  </div>

</div>
    
    
    <!--热门店铺 -->
    
    <div class="product_box">
      <div class="sub_nav">
        <div class="sn_left"> </div>
        <!--左边背景-->
        <div class="sn_mid"> 
        	<span class="strong hover">热门商品  &nbsp; 　
        	</span>
<?php
			if($hotproductTag)
			{
				foreach($hotproductTag as $productTag)
				{
?>
					<a href="<?php echo edp_href_link(PAGENAME_PRODUCT_SEARCH_RESULT, 'q='.sconv($productTag));?>">
						<?php echo $productTag;?>
					</a>
<?php
				}
			} 
?>
        </div>
        <!--中间内容-->
        <div class="sn_right"> </div>
        <!--右边背景--> 
      </div>
      <!--子导航-->
      <div class="product_items clear">
<?php

	if($hotProducts)
	{
		$printN = 1;
		foreach($hotProducts as $product)
		{
			if( $printN % 5 == 1 ) 
			{
?>
				 <div class="clear">
				
<?php 
			}
?>
			<div class="product_item">
			
					<a href="<?php echo edp_href_link(PAGENAME_PRODUCT_INFO, 'pid='.$product['id']);?>">
						<img src="<?php echo $product['pic_path'];?>" class="bg_product_img" alt="<?php secho($product['product_name']);?>的Logo" />
					</a>
				
			 	<div class="p_intr">
			 		<a href="<?php echo edp_href_link(PAGENAME_PRODUCT_INFO, 'pid='.$product['id']);?>">
<?php
						secho($product['product_name']);
?>
			 		</a>
			 	</div>	
			 		<p align="center">
			 			<span class="grayfont">价格：</span>
			 			<span class="redfont strong"><?php echo $product['price'];?></span>
			 		</p>
			 
			 </div>
<?php
			if($printN % 5 === 0)
			{
				echo '</div>';
			}
			$printN++;
		}
		if( $printN % 5 !== 1 )
		{
			echo '</div>';
		}
	}
?>
      </div>
      <!--商品--> 
    </div>
    <!--商店 --> 
    
  </div>
